<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>修改密码</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script type="text/javascript">
	$(document).ready(function(){
		$("#inputForm").validate({
			rules:{
				oldpass:{
					required:true,
					remote:'${ctx}/account/user!checkPass.action'
				},
				okpass:{
					equalTo:"#newpass"
				}
			},
			messages:{
				oldpass:{
					remote:"您输入的旧密码不正确!"
				}
			}
		});
	});
</script>
</head>
<body>
<form id="inputForm" action="user!updatepass.action" method="post" class="yform">

<div id="content">
<table id="contentTable" align="center">
     	<tr> 
     		<td>旧密码</td>
     		<td><input type="password" name="oldpass" id="oldpass"  /> </td>
     	</tr>
     	<tr> 
     		<td>新密码</td>
     		<td><input type="password" name="newpass" id="newpass"/> </td>
     	</tr>
     	<tr> 
     		<td>确认密码</td>
     		<td><input  type="password" name="okpass" id="okpass"/> </td>
     	</tr>
</table>
</div>
<div class="type-button"><input id="updatepass"
	 type="submit" class="submit" value="提交"/> 
</div>
</form>
</body>
</html>
